package org.jeecg.modules.constant;

import java.sql.Types;
import java.util.HashMap;
import java.util.Map;

public class GenerateConstants {

    public static  final  String ENTITY = "entity";     //实体包

    public static  final  String MAPPER = "mapper";     //持久层接口

    public static  final  String MAPPING = "mapping";     //持久层接口实现

    public static  final  String SERVICE = "service";     //持久层接口

    //public static  final  String MAPPING = "mapping";     //持久层接口实现

    //public static  final  String MAPPER = "mapper";     //持久层接口

    //public static  final  String MAPPING = "mapping";     //持久层接口实现


    public final static Map<Integer,String> typeMap = new HashMap<>();

    static {

        typeMap.put(Types.CHAR,"java.lang.String");
        typeMap.put(Types.NCHAR,"java.lang.String");
        typeMap.put(Types.VARCHAR,"java.lang.String");
        typeMap.put(Types.NVARCHAR,"java.lang.String");
        typeMap.put(Types.LONGVARCHAR,"java.lang.String");
        typeMap.put(Types.NUMERIC,"java.math.BigDecimal");
        typeMap.put(Types.DECIMAL,"java.math.BigDecimal");
        typeMap.put(Types.BIT,"java.lang.Boolean");
        typeMap.put(Types.TINYINT,"java.lang.Byte");
        typeMap.put(Types.SMALLINT,"java.lang.Short");
        typeMap.put(Types.INTEGER,"java.lang.Integer");
        typeMap.put(Types.BIGINT,"java.lang.Long");
        typeMap.put(Types.REAL,"java.lang.Float");

        typeMap.put(Types.FLOAT,"java.lang.Double");
        typeMap.put(Types.DOUBLE,"java.lang.Double");
        typeMap.put(Types.BINARY,"java.lang.Byte");
        typeMap.put(Types.VARBINARY,"java.lang.Byte");
        typeMap.put(Types.LONGVARBINARY,"java.lang.Byte");
        typeMap.put(Types.DATE,"java.util.Date");
        typeMap.put(Types.TIME,"java.util.Date");
        typeMap.put(Types.TIMESTAMP,"java.util.Date");
        typeMap.put(Types.BLOB,"java.sql.Blob");
        typeMap.put(Types.CLOB,"java.lang.String");
        typeMap.put(Types.NCLOB,"java.lang.String");
        typeMap.put(Types.ARRAY,"java.sql.Array");
        typeMap.put(Types.REF,"java.sql.Ref");
        typeMap.put(Types.OTHER,"java.lang.String");

    }

}
